home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 October / PCWorld_2000-10_cd2.bin / Borland / interbase / Borland InterBase Download Page_files / topnav.js < prev    next >
Text File  |  2000-08-29  |  1KB  |  47 lines

  1.  
  2. if (document.images) {
  3.  
  4.    tn_products_copy       = new Image();
  5.    tn_products_copy.src   = "/images/topnav/banners/products_white_copy.gif";
  6.    tn_support_copy        = new Image();
  7.    tn_support_copy.src    = "/images/topnav/banners/support_white_copy.gif";
  8.    tn_downloads_copy      = new Image();
  9.    tn_downloads_copy.src  = "/images/topnav/banners/downloads_white_copy.gif";
  10.    tn_programs_copy       = new Image();
  11.    tn_programs_copy.src   = "/images/topnav/banners/programs_white_copy.gif";
  12.    tn_worldwide_copy      = new Image();
  13.    tn_worldwide_copy.src  = "/images/topnav/banners/worldwide_white_copy.gif";
  14.    tn_newsgroups_copy     = new Image();
  15.    tn_newsgroups_copy.src = "/images/topnav/banners/newsgroups_white_copy.gif";
  16.    tn_community_copy      = new Image();
  17.    tn_community_copy.src  = "/images/topnav/banners/community_white_copy.gif";
  18.  
  19.    null_copy           = new Image();
  20.    null_copy.src       = "/images/layout/spacer_white.gif";
  21. }
  22.  
  23. function tnImgOn(imgName) {
  24.    if (document.images) {
  25.       document[imgName].src = eval(imgName + "_on.src");
  26.    }
  27. }
  28.  
  29. function tnImgOff(imgName) {
  30.    if (document.images) {
  31.       document[imgName].src = eval(imgName + "_off.src");
  32.    }
  33. }
  34.  
  35. function tnCopyOn(imgName) {
  36.    if (document.images) {
  37.       document['copy'].src = eval(imgName + "_copy.src"); 
  38.    }
  39. }
  40.  
  41. function tnCopyOff(imgName) {
  42.    if (document.images) {
  43.       document['copy'].src = null_copy.src;
  44.    }
  45. }
  46.  
  47.